package com.bjl.dao.imp;

import com.bjl.dao.UserDao;
import com.bjl.entity.User;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Repository;
import orm.base.Ex.BaseDaoEx;

import java.util.List;
import java.util.Map;

/**
 * 用户DAO
 * Created by ashin on 2017/11/9.
 */
@Repository
@Scope("prototype")
public class UserDaoImp extends BaseDaoEx implements UserDao {
    @Override
    protected void init() {
        super.init(this);
    }

    @Override
    public List<Map> getPhoneType(Map map) throws Exception {
        return this.query("getPhoneType", map);
    }

    @Override
    public List<Map> exportPageQuery(Map map) throws Exception {
        return this.query("exportPageQuery", map);
    }

    @Override
    public List<User> findDownwardUser(Map map) throws Exception {
        return this.query("findDownwardUser", map);
    }
}
